Repository navigation
ci: widen the Test Core matrix from 8 to 10 shards - #34727
Conversation
The 2026-11-16 timings refresh puts five of eight shards past the 1868s whole-package leg cap. The cap's own rule is a wider matrix, never a denser shard: (14524 + 2245.53 + 783) / 1868 = 9.4, so ten. Every width spelling in the test and test-gate jobs moves to 10 (job name, matrix fallback, --shard, labels, artifact names, --total, the gate's leg and planned roster); the partitioner reads the count from the matrix. The CLI keeps 3 slices, so the generator's decode is unchanged. Docblocks record the figures re-derived at 10. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ADHkmRH4UCX1tvddXMS7cq
…st-core-ten-shards
|
repo:objectstack#2 · os-steve · session_01ADHkmRH4UCX1tvddXMS7cq Final head for review · |
|
l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq Contract-review-claim: session_01ADHkmP44onN8RMzsPMqjRq · head 67be267 · 2026-11-17T09:30Z |
select-shard-timings-run.mjs spelled SHARD_COUNT = 8 and called it the live width; it now reads ci.yml's test matrix through ci-shard-matrix.mjs, the source the partitioner uses. Its matcher pins are spelled at the live width, and each keeps an 8-wide name read at its own width so retained runs from before the resize stay pinned. The eligibility fixtures stay an 8-wide run judged at its own width. The firing control reds by name instead of returning when the live width equals its fixture's. Case counts are unchanged per battery. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ADHkmRH4UCX1tvddXMS7cq
…st-core-ten-shards
|
repo:objectstack#2 · os-steve · session_01ADHkmRH4UCX1tvddXMS7cq Final head for review, round 2 · |
|
l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq Contract-review-claim: session_01ADHkmP44onN8RMzsPMqjRq · head b238da2 · 2026-11-17T10:12Z |
|
repo:objectstack#2 · os-steve · session_01ADHkmQtnGcx7hYEL11ptVs 席位核对L1 first review: ACCEPT · PR #34727 · card #34710 · area o2-C · L1-a2 · 2026-11-17T10:14Z Head-sha: Final-head comment 6945057088 (round 2); dev report 6945015626 on #34710. L1 wrote no record at Checklist
L2 and landing
|
|
l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq Contract reviewServed-tier: Read: card #34710 body and all five comments (triage first touch, claim, round-0 report, claim amendment, delta-round-1 report), PR #34727 body and file list, the net diff of four files against merge base ① Derived judgments
② Semver levelThe diff is one workflow and three repo scripts; nothing under a published package, no schema, no generated baseline. It carries no changeset file and the label ③ Boundary flags
④ Design judgment
N1 (nit) — N2 (nit) — No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA Seat record · 2026-11-17T10:21Z · Head-sha: b238da2 维护者速读
席位意见:同意合并。这是按源码规则的根修(加宽而不塞满),阈值不动;费用小且有实测依据。 席位核对
|
Fixes #34710
Clause-②: no
Metadata-protocol: none
维护者速读
.github/workflows/ci.yml里所有写死的/8宽度改成/10),分片脚本自动跟随,阈值一个没动。.github/workflows/ci.yml的test作业(matrix 回退列表、--shard、--total、产物名)和test-gate的--leg "test/10:…"与OS_TEST_PLAN;其次scripts/partition-test-shards.mjs新增的「RE-DERIVED AT 10」注释段。node scripts/partition-test-shards.mjs --self-test,应看到10 shards ... whole legs 1769/222/1754/... within 1868s;在 main 上同样操作是红的(5 片超上限)。.github/workflows/**,Tier H,含上面这笔 CI 费用),之后席位落地,再让 chore(ci): refresh the Test Core shard-timings dataset #34314 rebase 合入。What changes
.github/workflows/ci.yml, the Test Coretestjob and itstest-gate: every spelling of the width moves from 8 to 10, nothing else. Job nameTest Core (N/10), the matrix fallback'[1, ..., 10]',--shard N/10(partitioner and the per-file timing capture), the turbo-cache and drift--site/--labelstrings, the artifact namestest-core-run-summary-N-of-10,test-core-timings-N-of-10andshard-attest-test-N-of-10, the attestation--total 10, and intest-gatethe--leg "test/10:..."and theOS_TEST_PLANfallback. Comments that state the width follow; the rationale block gains aTEN since #34710paragraph and the cost paragraph the 8 -> 10 reading. Cache keys carry only the shard index, so they need no change.scripts/partition-test-shards.mjs: no code change.SHARD_COUNTisliveShardTotal('test')and reads 10 from the matrix. TheSHARD_COUNTdocblock gainsRE-DERIVED AT 10 (#34710 ...)with the arithmetic and the 8/9/10/11 table on the 2026-11-16 dataset; the closure-allowance docblock adds its figure at 10 (783 / 9 = 87.00s).scripts/ci/plan-test-core-shards.mjs: header text only (Test Core (N/10),--shard k/10,test-k-of-10).scripts/ci/select-shard-timings-run.mjs(delta round 1, the seat's ruling): itsSHARD_COUNTwas a literal 8 its comment called the live width; it now reads ci.yml'stestmatrix throughliveShardTotal('test')(scripts/ci-shard-matrix.mjs), the source the partitioner uses, and its comment says so. It stays only the matchers' default: the live lane judges each run at its own width. Self-test: the name-matcher pins are spelled at the live width (W = SHARD_COUNT, a non-live widthW + 1), and each also pins an 8-wide name read at its own width, so a retained pre-resize run stays pinned; the eligibility and candidate fixtures stay an 8-wide run judged at its own width, on purpose; the firing control now reds by name when the live width equals its 6-wide fixture, where it used toreturn. The partitioner's note on this file follows.WHOLE_LEG_CAP_SECONDS,LOAD_SENSITIVE_APART,MAX_SHARD_OVER_MEAN,SLICE_COUNT_HYSTERESIS,FILE_SHARDED_PACKAGES(CLI at 3) andPREVIOUS_FILE_SHARDED_PACKAGESare unchanged, and the datasetscripts/test-shard-timings.jsonis untouched.Required checks: branch protection requires the bare
Test Corecontext, published bytest-gate(name: Test Core), not the per-shardTest Core (N/M)jobs.check:required-contextsreads N from the matrix throughscripts/ci-shard-matrix.mjs, and no registry or gate names aTest Core (N/8)context.Tests
No partitioner pin reds at 10, so no pin was re-derived. The one test file changed is the self-test inside
scripts/ci/select-shard-timings-run.mjs(delta round 1, above).node scripts/partition-test-shards.mjs --self-test, (a) committed dataset at 10:self-test OK (79 measured packages -> 81 shard items, 10 shards, max/mean 1.05x [bound 1.3x], floor 1009s, bins 1304.07/1235.93/.../1233.65s within the 1432.04s density cap, whole legs 44/1236/1236/1235/1234/1236/1236/1234/757/756s within 1868s, file-level slices: @objectstack/cli x3).git show 5009c644:scripts/test-shard-timings.jsoninto a scratch worktree, not committed), at 10:self-test OK (82 measured packages -> 84 shard items, 10 shards, max/mean 1.01x [bound 1.3x], floor 1769s, ... within the 2245.53s density cap, whole legs 1769/222/1754/1754/1006/1005/1753/1756/1753/1754s within 1868s, file-level slices: @objectstack/cli x3).origin/main: exit 1,whole leg, committed dataset at 8 shards (sums 2195/663/2193/2194/1446/1445/2193/2195s), shards 1, 3, 4, 7, 8 past the cap and objectql with plugin-security on 8/8: the card's red, reproduced.node scripts/ci/plan-test-core-shards.mjs --self-test(23 cases),pnpm check:shard-attestation(runs the ci-shard-matrix self-test; 360 assertions),pnpm check:required-contexts,node scripts/ci/select-shard-timings-run.mjs --self-test,pnpm check:ci-filter-parity,node scripts/check-self-test-workflow-commands.mjs --self-test: all exit 0.node scripts/ci/select-shard-timings-run.mjs --self-test:: exit 0,select-shard-timings-run: self-test OK. Cases per battery, read by a temporary instrumented copy before (67be267) and after (b238da2): 37/9/13/17/18/13/5 = 112 both, so no case was dropped or added. MutantSHARD_COUNT = 8at the head (temporary copy): exit 1,job matcher: a job from a different shard count was accepted, so the live-width pins read the live width.Acceptance notes
select-shard-timings-run.mjsjudges each run at its own width (runIsEligiblewith no count readsMfrom the run's ownTest Core (N/M)jobs), so the retained 8-wide schedule runs stay eligible and the 10-wide runs after this lands are eligible too. Measured on this PR's own rehearsal of the refresh lane (Regenerate the shard-timings dataset, job 133947759319, dry run): it selected the 8-wide schedule runs 44043569490, 44014522626 and 43985144717, downloaded shards 1-8 of each, and the partitioner's verdict on the refreshed dataset at 10 readPARTITIONER_EXIT: 0.measure-test-shard-timings.mjsdoes not decode the width fromtest-core-run-summary-N-of-M; it decodes slices by digest againstFILE_SHARDED_PACKAGES/PREVIOUS_FILE_SHARDED_PACKAGES, which are unchanged, so the runs made at 8 decode exactly as before.@objectstack/spec's whole 1769.27s is the heaviest bin at 10 (1.01x the mean, 99s under the cap) and its whole leg is 1769s at any width. A refresh that takes spec past 1868s needs a finer slice of spec, not an eleventh shard.timeout-minutes: 60on thetestjob is unchanged; ten shards shorten every shard's tests step in the wall model.measure-test-shard-timings.mjs --diff) refused with exit 1 on main's tree, becausepackages/cli/test/serve-multi-node-gate-declaration.integration.test.tsdeclarestest-budget: 58, off the 10 s grid its header format requires; the lane then reports its regression readings as NOT MEASURED. Filed as cli test: serve-multi-node-gate-declaration's test-budget 58 s is off the 10 s grid, so every timings refresh's regression diff refuses #34711.Verification
At head b238da2 (the branch after merging origin/main f6f5b50):
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack: 67 families (the 65 of round 1 plusselect-shard-timings-run.mjs --self-testandmeasure-test-shard-timings.mjs --self-test), all exit 0.check:dts-closureandcheck:dual-build-cjs-loadsfirst ran while a lockedpnpm build --concurrency=2was still writing built output, and were re-run after it finished (VERDICT command-exit 0, 119/119 tasks), as were three other gates that read built output. The--ranreconciliation reads67 derived, 67 run, 0 NOT-MEASURED, 0 UNRUN.Test Coresuccess (the plan startedTest Core (1/10),(2/10)and(3/10), all success), andLint & Repo Gates,TypeScript Type Check,Build Core,Governed Surface Queue Guard,Lint UI,Type Check UI,Test UI,Build & E2E UI,Live E2E UI,Dogfood Regression GateandRegenerate the shard-timings datasetall success; the rest skipped by their filters.pnpm lintand the full farm, which are CI's. Dogfood battery: n/a (no!in the title, no narrowing arm).Generated by Claude Code